package com.liddhome.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.liddhome.dao.LifethingsDao;
import com.liddhome.entity.Lifethings;
import com.liddhome.service.LifethingService;

/**
 * 博客Service实现类
 * @author lidd
 *
 */
@Service("lifethingService")
public class LifethingServiceImpl implements LifethingService{

	@Resource
	private LifethingsDao lifethingsDao;
	
	public List<Lifethings> countList() {
		return lifethingsDao.countList();
	}

	public List<Lifethings> list(Map<String, Object> map) {
		return lifethingsDao.list(map);
	}

	public Long getTotal(Map<String, Object> map) {
		return lifethingsDao.getTotal(map);
	}

	public Lifethings findById(String id) {
		return lifethingsDao.findById(id);
	}

	public Integer update(Lifethings lifethings) {
		return lifethingsDao.update(lifethings);
	}

	public Lifethings getLastBlog(String id) {
		return lifethingsDao.getLastBlog(id);
	}

	public Lifethings getNextBlog(String id) {
		return lifethingsDao.getNextBlog(id);
	}

	public Integer add(Lifethings lifethings) {
		return lifethingsDao.add(lifethings);
	}

	public Integer delete(String id) {
		return lifethingsDao.delete(id);
	}

	

}

